-- GENERATED SPELL FOR [Brain Eater] --


function spell0_570(pUnit, Event) --@Plague Mind,Drain--
pUnit:FullCastSpellOnTarget(3429,pUnit:GetRandomPlayer(4))
pUnit:RegisterEvent('Sorts_570', 4000, 1)
end

function Sorts_570(pUnit, Event)
local choix_sorts_570 = math.random(0, 0)
if choix_sorts_570 == 0 then
pUnit:RegisterEvent('spell0_570', 1, 1)
end
end

function mob570_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_570', math.random(1500, 3000), 1)
end

function mob570_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob570_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob570_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(570, 1, 'mob570_Action')
RegisterUnitEvent(570, 2, 'mob570_Leave')
RegisterUnitEvent(570, 3, 'mob570_Kill')
RegisterUnitEvent(570, 4, 'mob570_Die')
